package bm.com.project.server.common.converter;


import bm.com.project.server.common.dto.BmAdjunctsDTO;
import bm.com.project.server.common.entity.BmAdjunctsEntity;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AdjunctsConvent {

    AdjunctsConvent INSTANCE = Mappers.getMapper(AdjunctsConvent.class);

    /**
     * 单一实体转化
     * @param adjunct
     * @return
     */
    BmAdjunctsEntity converter(BmAdjunctsDTO adjunct);

    /**
     * 多实体转化
     * @param Adjuncts
     * @return
     */
    List<BmAdjunctsEntity> converterList(List<BmAdjunctsDTO> Adjuncts);

}
